﻿using UnityEngine;
using System.Collections;
using Dict.DataModel;

namespace Room
{
    public class RCLODFish : RCLODBase
    {
        private string modelResName;

        public RCLODFish(RoomCharactor owner)
            : base(owner)
        {
            type = LODType.Fish;
        }

        public void Init(TableFieldResource fish /*LoadCompleteCallback callback*/)
        {
            this.modelResName = fish.model;
        }

        public override void DoResume()
        {
            LoadModel(modelResName);
        }

        protected override void OnLoadModelComplete()
        {
            model.SetActive(true);
        }

    }
}